<%--
  Created by IntelliJ IDEA.
  User: ZJM
  Date: 2024/4/16
  Time: 22:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>代码脚本</title>
</head>
<body>
<h1>代码脚本</h1>
<%--if代码块--%>
<%
  int i = 10;
  if (i > 5) {
%>
<h1> 大于5 </h1>
<%--System.out.println("大于5");--%>
<%
} else {
%>
<h1> 不大于5 </h1>
<%--System.out.println("不大于5");--%>
<%
  }
%>

<%--for循环--%>
<%
  for (int j = 0; j < 20; j++) {
    System.out.println("for循环");
  }
%>

<%----%>
<%
  String username = request.getParameter("username");
  System.out.println(username);
%>
</body>
</html>
